package com.lagou.homework3.no4;

import java.util.List;

/**
 * 展示学生信息
 */
public class SelectStudent {
    public static void select(List list){
        for(int i=1;i<=list.size();i++){
            Student stu = (Student) list.get(i-1);
            System.out.println("第"+i+"名学生的学号是："+stu.getId()+",姓名是："+stu.getName()+",年龄是："+stu.getAge());
        }
    }
}
